package com.wjs.service.impl;

import com.wjs.entity.Brand;
import com.wjs.mapper.BrandMapper;
import com.wjs.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BrandServiceImpl implements BrandService {
    @Autowired
    private BrandMapper brandMapper;

    @Override
    public List<Brand> selectAll() {
        return brandMapper.selectAll();
    }

    @Override
    public void insertBrand(Brand brand) {
        brandMapper.insertBrand(brand);
    }

    @Override
    public void deleteBrandById(Integer id) {
        brandMapper.deleteBrandById(id);
    }

    @Override
    public Brand selectById(Integer id) {
        return brandMapper.selectById(id);
    }
}
